package com.ly.report_ah.controller;


import com.ly.report_ah.entity.master.Company;
import com.ly.report_ah.sercive.master.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
public class CompanyController {

    @Autowired
    private CompanyService companyService;

    @GetMapping("/company")
    public List<Company> getCompanyList() {
        return companyService.getCompany();
    }
}
